/**
 * Unescapes HTML special chars
 */
export function unescapeHtml(str: string): string {
  str = (str || '').toString()
    .replace(/&amp;/g, '&')
    .replace(/&lt;/g, '<')
    .replace(/&gt;/g, '>')
    .replace(/&#0*39;/g, '\'')
    .replace(/&quot;/g, '"')
  return str
}
